package com.just.sxmiaosha.service;

import com.just.sxmiaosha.entity.Stock;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author just
 * @since 2020-09-23
 */
public interface StockService {



    Stock getStockById(int id);

    //根据id查询数据库库存接口

    int getStockCountById(int id);

    //查询缓存库存接口

    int getStockCountCache(int id);





}
